package com.example.plugin.hook;

import android.content.Context;

import com.example.plugin.hook.proxy.ActivityManagerHook;
import com.example.plugin.hook.proxy.PluginCallbackHook;
import com.example.plugin.hook.proxy.ProxyHook;

public class HookManager {
	
	public static void installHook(Context context) {
		installHook(new ActivityManagerHook(context));
		installHook(new PluginCallbackHook(context));
	}
	
	private static void installHook(ProxyHook hook) {
        try {
            hook.onInstall();
        } catch (Throwable e) {
        	e.printStackTrace();
        }
    }
}
